package com.algo.core;

/**
 * 配置信息加载组件
 */
public class RapidSeverConfigLoader {

    private static RapidSeverConfigLoader INSTANCE = new RapidSeverConfigLoader();

    private RapidSeverConfigLoader() {}

    public static RapidSeverConfigLoader getInstance() {
        return INSTANCE;
    }

    public RapidSeverConfig load(String [] args) {
        RapidSeverConfig rapidSeverConfig = new RapidSeverConfig();

        // 环境变量 -> JVM配置 -> 启动命令配置 -> 启动参数 -> 默认
        return rapidSeverConfig;
    }

}
